﻿namespace CoreWebApiNuGet.JwtAuthentication
{
    /// <summary>
    /// Jwt鉴权接口
    /// </summary>
    public interface IJwtTokenAuthorityService
    {
        /// <summary>
        /// 生成Token
        /// </summary>
        /// <param name="claims"></param>
        /// <returns></returns>
        public string GenerateToken(JwtCarrier jwtCarrier);

        /// <summary>
        /// 验证Token
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public bool AuthToken(string token);
    }
}
